package config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

import rewards.admin.accounts.test.StubAccountManagerWithOneAccount;
import rewards.admin.accounts.test.StubAccountManagerWithTwoAccounts;

@Configuration
public class MvcIntegrationTestConfig {

	
	@Profile("one-account-stub")
	@Bean(name="accountManager")
	public StubAccountManagerWithOneAccount accountManagerWithOneAccount() {
		return new StubAccountManagerWithOneAccount();
	}
	
	@Profile("two-account-stub")
	@Bean(name="accountManager")
	public StubAccountManagerWithTwoAccounts accountManagerWithTwoAccount() {
		return new StubAccountManagerWithTwoAccounts();
	}
	
}
